home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / SOM / OpenDoc and SOM / SkeletonPart / SkelPart.xh < prev    next >
Encoding:
Text File  |  1994-04-19  |  3.2 KB  |  146 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: SkelPart.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: somc/smemit.c
  7.  *     SOM Emitter emitxh.dll: somc/smmain.c
  8.  */
  9.  
  10. #ifndef SOM_Module_Apple_defined
  11. #define SOM_Module_Apple_defined 1
  12. #include <som.xh>
  13.  
  14. /*
  15.  * Start of user-defined types:
  16.  */
  17.  
  18. /*
  19.  * End of user-defined types.
  20.  */
  21. #endif /* SOM_Module_Apple_defined */
  22.  
  23. #ifndef SOM_Apple_SkeletonPart_xh
  24. #define SOM_Apple_SkeletonPart_xh
  25.  
  26. class Apple_SkeletonPart;
  27.  
  28. #define Apple_SkeletonPart_MajorVersion 1
  29. #define Apple_SkeletonPart_MinorVersion 0
  30.  
  31. /* C++ som defs */
  32. #include <somcls.xh>
  33.  
  34. /* Include C++ parent defs */
  35. #ifndef SOM_ODPart_xh
  36. #include <Part.xh>
  37. #endif
  38.  
  39. #ifndef Apple_SkeletonPart_API
  40. #define Apple_SkeletonPart_API
  41. /*
  42.  * -- The Class API
  43.  */
  44.  
  45. /*
  46.  * Start of user-defined types:
  47.  */
  48. class ODExtension;
  49. class ODCanvas;
  50. class ODLinkSource;
  51. class ODEmbeddedFramesIterator;
  52. class ODSession;
  53. class ODTypeSet;
  54. class ODStorageUnit;
  55. class ODLink;
  56. class ODStorageUnitView;
  57. class ODFacet;
  58. class ODDragItemIterator;
  59. class ODFrame;
  60. class ODShape;
  61. class ODTransform;
  62.  
  63. /*
  64.  * End of user-defined types.
  65.  */
  66.  
  67. #if applec ^ PRAGMA_LIB_EXPORT
  68. #pragma lib_export on
  69. #endif
  70.  
  71.  
  72. /* A procedure to create the Apple_SkeletonPart Class */
  73. SOMEXTERN SOMClass * SOMLINK Apple_SkeletonPartNewClass(
  74.         integer4 majorVersion,
  75.         integer4 minorVersion);
  76.  
  77. /* The API to the Apple_SkeletonPart class object, and the methods it introduces. */
  78. typedef struct Apple_SkeletonPartClassDataStructure {
  79.     SOMClass *classObject;
  80. } Apple_SkeletonPartClassDataStructure;
  81. #ifdef SOM_NO_DATA_EXPORTS
  82.    SOMEXTERN Apple_SkeletonPartClassDataStructure * Apple_SkeletonPartGetClassData ( void );
  83. #   undef Apple_SkeletonPartClassData
  84. #   define Apple_SkeletonPartClassData (*Apple_SkeletonPartGetClassData())
  85. #else
  86.    SOMEXTERN Apple_SkeletonPartClassDataStructure Apple_SkeletonPartClassData;
  87. #endif /* SOM_NO_DATA_EXPORTS */
  88.  
  89. #if applec ^ PRAGMA_LIB_EXPORT
  90. #pragma lib_export off
  91. #endif
  92.  
  93. #define _Apple_SkeletonPart Apple_SkeletonPartClassData.classObject
  94.  
  95. /* The API to parentMtabs for Apple_SkeletonPart, and the instance data it introduces. */
  96. SOMEXTERN struct Apple_SkeletonPartCClassDataStructure {
  97.     somMethodTabs parentMtab;
  98.     somDToken instanceDataToken;
  99. } Apple_SkeletonPartCClassData;
  100.  
  101. /*
  102.  * -- Typedefs for Procedures that support Methods introduced by Apple_SkeletonPart
  103.  */
  104. SOMEXTERN {
  105. }
  106.  
  107. #endif /* Apple_SkeletonPart_API */
  108.  
  109.  
  110. /*
  111.  * -- Method Tokens are Thunks
  112.  */
  113. #undef somresolve_
  114. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  115.  
  116. /*
  117.  * -- The C++ Wrapper Class for Apple_SkeletonPart
  118.  */
  119. class Apple_SkeletonPart : public ODPart
  120. {
  121. public:
  122.  
  123. void *operator new(size_t size)
  124. {
  125.    SOM_IgnoreWarning(size);
  126.    if (!Apple_SkeletonPartClassData.classObject) 
  127.       Apple_SkeletonPartNewClass(Apple_SkeletonPart_MajorVersion,Apple_SkeletonPart_MinorVersion);
  128.    return (void *)
  129.       ((somTD_SOMClass_somNew)
  130.       somresolve_((SOMObject *)((void*)(Apple_SkeletonPartClassData.classObject)),
  131.                  SOMClassClassData.somNew))
  132.          ((SOMClass *)((void*)(Apple_SkeletonPartClassData.classObject)));
  133. }
  134.  
  135. void operator delete(void * obj)
  136. {
  137.    ((SOMObject *)obj)->somFree();
  138. }
  139.  
  140.  
  141. };   /* Apple_SkeletonPart */
  142.  
  143.  
  144.  
  145. #endif       /* SOM_Apple_SkeletonPart_xh */
  146.